package com.manage.platform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 新闻中心实体类
 */
@Accessors(chain = true)
@Data
@TableName("t_new_center")
public class NewCenterEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    @Schema(description = "新闻ID")
    private Long id;

    @Schema(description = "创建者用户ID")
    private Long userId;

    @Schema(description = "新闻类型(EDUCATION=教育新闻, MEDIA=媒体报道)")
    private String type;

    @Schema(description = "状态(0=普通, 1=热门, 2= 最新)")
    private Integer category;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "内容(描述)")
    private String description;

    @Schema(description = "发布时间")
    private String pushTime;

    @Schema(description = "官网名称")
    private String websiteName;

    @Schema(description = "官网URL地址")
    private String websiteUrl;

    @Schema(description = "图片URL地址")
    private String imageUrl;

    @Schema(description = "创建时间")
    private String createTime;

    @Schema(description = "更新时间")
    private String updateTime;

    @TableLogic
    @Schema(description = "是否删除(0=否,1=是)")
    private Integer isDeleted;

}

